<?php

class Badlinks extends AppModel {

    var $alias = 'Badlinks';
    var $name = 'Badlinks';
    var $useTable = 'badlinks';
    var $belongsTo = array(
        'Game' => array(
            'className' => 'Game',
            'foreignKey' => 'game_id',
            'fields' => array('Game.id', 'Game.title', 'Game.alias')
        )
    );
    function paginateCount($conditions = null, $recursive = 0, $extra = array()) {
        $parameters = compact('conditions');
        $this->recursive = $recursive;
        $count = $this->find('count', array_merge($parameters, $extra));
        if (isset($extra['group'])) {
            $count = $this->getAffectedRows();
        }
        return $count;
    }

}

?>
